package com.iflytek.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 订单表
 * @author h_t
 * @since 2023-09-23
 */

@Data
@TableName("t_order")
@ApiModel(value="Order对象")
public class Order implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "序号,新增不传",example="1")
    private Long id;

    @TableField(value = "order_no")
    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @TableField(value = "total_price")
    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;

    @TableField(value = "user_id")
    @ApiModelProperty(value = "下单人id",example="1")
    private Long userId;

    @TableField(value = "link_user")
    @ApiModelProperty(value = "联系人")
    private String linkUser;

    @TableField(value = "link_phone")
    @ApiModelProperty(value = "联系电话")
    private String linkPhone;

    @TableField(value = "link_address")
    @ApiModelProperty(value = "送货地址")
    private String linkAddress;

    @TableField(value = "state")
    @ApiModelProperty(value = "状态")
    private String state;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

}
